package com.github.xiaoymin.map.request.baidu;

import java.util.HashMap;
import java.util.Map;

public class BaiduDistrictRequest {

    /**
     * 搜索的关键字
     * eg:美食 ATM 银行
     */
    private String query;
    /**
     * 地区
     * eg： 杭州
     */
    private String region;
    /**
     * 返回数据的格式
     */
    private String output="json";

    public String getQuery() {
        return query;
    }

    public void setQuery(String query) {
        this.query = query;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public String getOutput() {
        return output;
    }

    public void setOutput(String output) {
        this.output = output;
    }

    public Map<String,String> toMap(){
        Map<String,String> params = new HashMap<>();
        return params;
    }
    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("BaiduDistrictRequest{");
        sb.append("query='").append(query).append('\'');
        sb.append(", region='").append(region).append('\'');
        sb.append(", output='").append(output).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
